import request from "@/utils/request";
import { stringify } from "qs";
import { toFormData } from "@/utils/utils.jsx";

//6.1 已售采购汇总列表
export async function getPurchasestatisticsList(params) {
	return request(`/new-wms/purchasestatistics/total-page?${stringify(params)}`);
}
// 已销汇总商品详情
export async function purchasestatisticsSupplierSku(params) {
	return request(`/new-wms/purchasestatistics/supplier-sku?${stringify(params)}`);
}

export async function purchasestatisticsTotalPrice(params) {
	return request(`/new-wms/purchasestatistics/total-price?${stringify(params)}`);
}
// 批量改价
export async function upadteGoods(params) {
	return request(`/new-wms/purchasestatistics/updateGoodsPrice`, {
		method: "post",
		data: params
	});
}

//设置备注
export async function setRemarkOp(params) {
	return request(`/zjf-wms/inventory/setRemark`, {
		method: "post",
		data: params
	});
}
// 快销支付
export async function outboundproductsPay(params) {
	return request(`/new-wms/outboundproducts/pay`, {
		method: "post",
		data: params
	});
}
// 改价提示
export async function getPriceTip(params) {
	return request(`/new-wms/purchasestatistics/getPriceTip`, {
		method: "post",
		data: params
	});
}
// 获取收银台支付方式和支付金额
export async function cashpaymentMethod(params) {
	return request(`/new-wms/fmcgpurchases/cashpayment/method`, {
		method: "post",
		data: params
	});
}
